
    import request from '@/utils/request'
    // 查询教师信息表列表
    export const listTeacher = (query) => {
    return request({
        url: '/system/teacher/list',
        method: 'get',
        params: query
    })
    }
    // 查询教师信息表详细
    export const getTeacher = (teacherId) => {
    return request({
        url: '/system/teacher/' + teacherId,
        method: 'get'
    })
    }
    
    // 新增教师信息表
    export const addTeacher = (data) => {
    return request({
        url: '/system/teacher',
        method: 'post',
        data: data
    })
    }

    // 修改教师信息表
    export const updateTeacher = (data) => {    
    return request({
        url: '/system/teacher',
        method: 'put',
        data: data
    })
    }
    export const updateTeacherInfo = (data) => {    
    return request({
        url: '/system/teacher/info',
        method: 'put',
        data: data
    })
    }
    // 删除教师信息表
    export const delTeacher = (teacherId) => {  
    return request({
        url: '/system/teacher/' + teacherId,
        method: 'delete'
    })
    }
    
    // 导出教师信息表
    export const exportTeacher = (data) => {
    return request({
        url: '/system/teacher/export',
        method: 'post',
        data: data
    })
    }
    // 查询部门下的教师列表
    export const listByDept = (deptId) => {
    return request({
        url: '/system/teacher/listByDept/' + deptId,
        method: 'get'
    })
    }
    